package rocket.client;

import javax.swing.JPanel;
import javax.swing.JLabel;
import javax.swing.JTextField;
import javax.swing.JPasswordField;
import javax.swing.JButton;
import javax.swing.ImageIcon;

public class ClientLogin extends JPanel {
	private JTextField userField;
	private JPasswordField passwordField;

	/**
	 * Create the panel.
	 */
	public ClientLogin() {
		setLayout(null);

		ImagePanel panel = new ImagePanel(new ImageIcon("/rocket/images/welcomeScreen.png").getImage());
		panel.setBounds(0, 0, 800, 600);
		add(panel);
		
		JLabel lblUsername = new JLabel("Username");
		lblUsername.setBounds(200, 200, 80, 15);
		add(lblUsername);
		
		userField = new JTextField();
		userField.setBounds(200, 216, 114, 25);
		add(userField);
		userField.setColumns(10);
		
		passwordField = new JPasswordField();
		passwordField.setBounds(200, 264, 114, 25);
		add(passwordField);
		
		JLabel lblPassword = new JLabel("Password");
		lblPassword.setBounds(200, 248, 70, 15);
		add(lblPassword);
		
		JButton btnLogin = new JButton("Login");
		btnLogin.setBounds(200, 325, 114, 25);
		add(btnLogin);
		
		JLabel lblNewLabel = new JLabel("");
		lblNewLabel.setIcon(new ImageIcon(ClientLogin.class.getResource("/rocket/images/welcomeScreen.png")));
		lblNewLabel.setBounds(0, 0, 801, 601);
		add(lblNewLabel);

	}

}
